//
//  StoreCommissionCell.m
//  WGFGlobalHouses
//
//  Created by waiguofang on 15/6/9.
//  Copyright (c) 2015年 waiguofang. All rights reserved.
//

#import "StoreCommissionCell.h"
#import "StoreCommission.h"
#import "config.h"



@interface StoreCommissionCell ()

@property (weak, nonatomic) IBOutlet UILabel *titleLab;

@property (weak, nonatomic) IBOutlet UILabel *priceLab;

@property (weak, nonatomic) IBOutlet UILabel *numberLab;

@end



@implementation StoreCommissionCell



+(instancetype) cellWithTableView:(UITableView *)tableview{

    static NSString *ID = @"StoreCommissionCell";
    StoreCommissionCell *cell = [tableview dequeueReusableCellWithIdentifier:ID];
    if (cell == nil)
    {
        cell = [[[NSBundle mainBundle]loadNibNamed:@"StoreCommissionCell" owner:nil options:nil]lastObject];
        
        UIView *seView = [[UIView alloc]init];
        [seView setBackgroundColor:UIColorFromRGB(0xf7f7f7)];
        
        [cell setSelectedBackgroundView:seView];
    }
    
    return cell;
}


+(CGFloat)getHight:(CellBaseData*)data withTableView:(UITableView*)tableView{

    return 70;
}


-(void)setData:(StoreCommission*)data{
    
    [self.titleLab setText:data.storeName];
    [self.priceLab setText:data.saleCount];
    [self.numberLab setText:data.number];
    

}

@end
